package org.axgl 
{
	import flash.geom.Point;


public class AxPoint
{
	public function AxPoint(x:Number = 0, y:Number = 0) 
	{
		this.x = x;
		this.y = y;
	}

	
	
	public function toPoint(point:Point = null):Point
	{
		if (point == null) {
			point = new Point(x, y);
		} else {
			point.x = x;
			point.y = y;
		}
		return point;
	}

	public function fromPoint(point:Point):AxPoint 
	{
		x = point.x;
		y = point.y;
		return this;
	}
	
	public function toString():String
	{
		return "(" + x + "," + y + ")";
	}
	
	
	public var x:Number;
	public var y:Number;

}
}
